cmake_minimum_required(VERSION 3.16)
project(c C)

set(CMAKE_C_STANDARD 99)

add_executable(c main.c
        m_c_realloc.c
        m_c_realloc.h
        str_test.c
        str_test.h
        _typedef.c
        _typedef.h
        _file.c
        _file.h
        _sys_call.c
        _sys_call.h
        _fork_sleep_wait.h
        _fork_sleep_wait.c
        _exec.h
        _exec.c
        _pipe.c
        _pipe.h
        _socket.c
        _socket.h
        _thread.c
        _thread.h
        )

find_package(Threads REQUIRED)
target_link_libraries(c Threads::Threads)